package com.nlp.trie.experiment1;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

import com.nlp.trie.FileRW;

public class Test1 {
	public static void main(String[] args) {
		FileRW rw = new FileRW();
		String content = rw.read("E:\\search\\nlp\\trie\\src\\main\\resources\\199801.txt");
		Thesaurus thesaurus = new Thesaurus(content);
		/*Scanner in = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		System.out.println("请输入测试的次数");
		int times = in.nextInt();
		in.nextLine();
		while( times-- > 0) {
			System.out.println("请输入句子:");
            String s1 = in.nextLine();
            System.out.println("请输入标准答案(请用'分词):");
            String s2 = in.nextLine();
            String s3 = thesaurus.spitWord(s1, "'");
            System.out.println("系统分词结果:\n"+s3);
            list.add(Assess.get(s2,s3));
		}
		int average = 0;
		System.out.println("每句分词成绩：");
		for (Integer goal : list) {
			System.out.print(goal+"\t");
			average += goal;
		}
		average = average/list.size();
		System.out.println("\n平均得分: "+average);
        in.close();*/
	}

}
